<?php

$wl_dir=__DIR__.'/../config/index.json';

if(file_exists($wl_dir)){
    $fp = fopen($wl_dir,"r");
    $str = fread($fp,filesize($wl_dir));//指定读取大小，这里把整个文件内容读取出来
    $str = str_replace("\r\n","<br />",$str);
//    var_dump(json_decode($str));

    $arr=explode(',',$str);

    $info_arr=[];
    foreach ($arr as $item) {
        $temp=explode(':',$item);
        $info_arr[$temp[0]]=$temp[1];
    }
    var_dump($info_arr);

}
